﻿using System.Collections.Generic;
using System.Linq;
using ZBJF.Warranty.Model;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ICellPhoneInsuranceInfoService
    {
        /// <summary>
        /// 根据保单表主键ID获取手机保险信息
        /// </summary>
        /// <param name="insuranceOrderID"></param>
        /// <returns></returns>
        IQueryable<CellPhoneInsuranceInfo> LoadByInsuranceID(long insuranceOrderID);
        IQueryable<CellPhoneInsuranceInfo> Load(List<long> cellPhoneInsuranceInfoIDs);
        CellPhoneInsuranceInfo Load(long insuranceOrderID, int cellPhoneServiceProjectID);
        CellPhoneInsuranceInfo Load(long id);

        /// <summary>
        /// 创建保单与服务项目的映射（即快照）
        /// </summary>
        /// <param name="insuranceOrderID"></param>
        /// <param name="insuranceProductID"></param>
        /// <param name="cellPhoneInsuranceInfoList">填写的相关信息，根据产品的服务项目个数，填写多个IMEI、IDFV、ProductTypeName等</param>
        /// <returns></returns>
        bool CreateSnapshoot(int insuranceOrderID, int insuranceProductID, List<CellPhoneInsuranceInfo> cellPhoneInsuranceInfoList);
    }
}